%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%  Copyright by Wenliang Du.                                        %%
%%  This work is licensed under the Creative Commons                 %%
%%  Attribution-NonCommercial-ShareAlike 4.0 International License.  %%
%%  To view a copy of this license, visit                            %%
%%  http://creativecommons.org/licenses/by-nc-sa/4.0/.               %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

上面的 \urlisorurlsare 只能从虚拟机内部访问，因为我们已修改了 \texttt{/etc/hosts} 文件，将每个 URL 的域名映射到 IP 地址 {\tt 10.9.0.5}。

您可以使用 \texttt{/etc/hosts} 将任何域名映射到特定 IP 地址。例如，您可以通过将以下条目附加到 \texttt{/etc/hosts}， 把 \url{http://www.example.com} 的域名映射到本地 IP 地址：

\begin{lstlisting}[backgroundcolor=]
   127.0.0.1     www.example.com
\end{lstlisting}